#ifndef FREESTYLE_STATE_H
#define FREESTYLE_STATE_H

#include "State.hpp"

class FreestyleState : public State
{
public:
	FreestyleState();
	virtual void handleEvent(Event& event);
	virtual void initState();
	virtual StateType getStateType();
private:
	void avoidObstacle();
	enum Status
	{
		FORWARD,
		BACKWARD,
		TURNING
	};

	void resumeAvoidObstacle(Status status);
//	void partialWait();

	Status currentStatus;
	unsigned int timeLeft;
};
#endif
